package com.ampaiva.organizescreen.activity;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;

import com.ampaiva.organizescreen.R;

public class PuzzleActivity extends Activity {
	private static final String TAG = PuzzleActivity.class.getSimpleName();

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// requesting to turn the title OFF
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		// making it full screen
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		// set our MainGamePanel as the View
		// setContentView(new PuzzlePanel(this));
		setContentView(R.layout.main);
		Button btnStart = (Button) findViewById(R.id.btnStart);
		btnStart.setOnClickListener(new Button.OnClickListener() {

			@Override
			public void onClick(View paramView) {
				setContentView(R.layout.puzzle);
			}
		});

		Log.d(TAG, "View added");
	}

	public void onBack(final View view) {
		finishActivity(Activity.RESULT_OK);
	}

	@Override
	protected void onDestroy() {
		Log.d(TAG, "Destroying...");
		super.onDestroy();
	}

	@Override
	protected void onStop() {
		Log.d(TAG, "Stopping...");
		super.onStop();
	}
}